package com.ruoyi.hospital.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目折扣活动对象 inspection_activity
 * 
 * @author qichi
 * @date 2023-07-05
 */
public class InspectionActivity extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 项目折扣活动id */
    private Long id;

    /** 租户id */
    @Excel(name = "租户id")
    private Long tenantId;

    /** 部门id */
    @Excel(name = "部门id")
    private Long deptId;

    /** 项目折扣 */
    @Excel(name = "项目折扣")
    private BigDecimal discount;

    /** 折扣开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "折扣开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date discountStartTime;

    /** 折扣结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "折扣结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date discountEndTime;

    /** 活动时间类型 0 时间段 1 永久 */
    @Excel(name = "活动时间类型 0 时间段 1 永久")
    private Integer timeType;

    /** 活动状态 0未开始 1进行中 2已结束 */
    @Excel(name = "活动状态 0未开始 1进行中 2已结束")
    private Integer activityStatus;

    /** 项目id */
    @Excel(name = "项目id")
    private Long inspectionId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(Long tenantId) 
    {
        this.tenantId = tenantId;
    }

    public Long getTenantId() 
    {
        return tenantId;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setDiscountStartTime(Date discountStartTime) 
    {
        this.discountStartTime = discountStartTime;
    }

    public Date getDiscountStartTime() 
    {
        return discountStartTime;
    }
    public void setDiscountEndTime(Date discountEndTime) 
    {
        this.discountEndTime = discountEndTime;
    }

    public Date getDiscountEndTime() 
    {
        return discountEndTime;
    }
    public void setTimeType(Integer timeType) 
    {
        this.timeType = timeType;
    }

    public Integer getTimeType() 
    {
        return timeType;
    }
    public void setActivityStatus(Integer activityStatus) 
    {
        this.activityStatus = activityStatus;
    }

    public Integer getActivityStatus() 
    {
        return activityStatus;
    }
    public void setInspectionId(Long inspectionId) 
    {
        this.inspectionId = inspectionId;
    }

    public Long getInspectionId() 
    {
        return inspectionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("deptId", getDeptId())
            .append("discount", getDiscount())
            .append("discountStartTime", getDiscountStartTime())
            .append("discountEndTime", getDiscountEndTime())
            .append("timeType", getTimeType())
            .append("activityStatus", getActivityStatus())
            .append("createBy", getCreateBy())
            .append("inspectionId", getInspectionId())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
